package com.third.entity.vo.request;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author 唐博文
 * @version 2023.1.2
 * @date 2023/10/23 16:43 星期一
 */
@Data
public class EmailRegisterVO {
    @Email
    String email;
    @Length(max = 6,min = 6)
    String code;
    @Pattern(regexp = "^[a-zA-Z0-9\\u4e00-\\u9fa5]+$")
    @Length(min = 4,max = 8)
    String username;
    @Length(min = 6,max = 20)
    String password;
    //角色
    Integer roleId;//user  work Manage
    String phone;
    String address;
}
